﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.ServiceModel;
using System.Text;
using FluentProxySharedDomain.ServiceReference1;
using FluentWcfServiceLibrary;
using Salient.ServiceModel;

namespace FluentProxySharedDomain
{


    class Program
    {
        static void Main(string[] args)
        {


            ServiceInvoker.UsingProxy<Service1Client>(c =>
                {
                    var order = c.GetOrder(10248);


                    var category = c.GetCategories(1);

                    // todo prepare database
                    var custCustDemo = c.GetCustomerCustomerDemo("VINET", "ct01");
                    var custDemo = c.GetCustomerDemographics("ct01");

                    var customer = c.GetCustomers("VINET");
                    var employee = c.GetEmployees(6);
                    var empTerritory = c.GetEmployeeTerritories(6, "85014");
                    var orderDetails = c.GetOrder_Details(10250, 51);

                    var product = c.GetProducts(1);
                    var region = c.GetRegion(1);
                    var shipper = c.GetShippers(1);
                    var supplier = c.GetSuppliers(1);
                    var territory = c.GetTerritories("85014");

                });

        }


    }
}
